﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title> 
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet"  type="text/css" />
    <link href="../../../Scripts/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../../Scripts/config.js"></script>
    <script type="text/javascript" src="../../../Comm/Gener.js"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../CCFlowEnum.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>

    <script  type="text/javascript">

        $(function () {
            InitBar(DeliveryWay.ByDtlAsSubThreadEmps);
            var nodeID = GetQueryString("FK_Node");
            var node = new Entity("BP.WF.Node", nodeID);

            if (node.RunModel == RunModel.SubThread) {
                document.getElementById("RB_ByDtlAsSubThreadEmps").disabled = false
            } else {
                document.getElementById("RB_ByDtlAsSubThreadEmps").disabled = true
            }

            if (node.DeliveryWay == DeliveryWay.ByDtlAsSubThreadEmps) {
                $("#RB_ByDtlAsSubThreadEmps").val(node.DeliveryParas)
                
            }

        });

        function Save() {
            var nodeID = GetQueryString("FK_Node");
            var node = new Entity("BP.WF.Node", nodeID);
            node.DeliveryWay = DeliveryWay.ByDtlAsSubThreadEmps;
            var DeliveryParas = $("#RB_ByDtlAsSubThreadEmps").val();
            node.DeliveryParas = DeliveryParas;
            node.Update();
            alert("保存成功.");
        }
    </script>
</head>
<body >

<div id="bar"> </div>

<fieldset>
    <legend>请输入用户编号列.</legend>
    <textarea id="RB_ByDtlAsSubThreadEmps" rows="" cols="" style="width:100%;height:50px"></textarea>
</fieldset>

<fieldset>
    <legend>说明</legend>
    <ul>
        <li>此方法与分合流相关，只有当前节点是子线程才有意义。 </li>
        <li>当前参数为明细表的字段列，如果不填写，就默认为 UserNo 。</li>
   </ul>
</fieldset>

</body>
</html>
